﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CubicFWNet.Data.Models.Mapping
{
    public class GradeMaintenanceMap : EntityTypeConfiguration<GradeMaintenance>
    {
        public GradeMaintenanceMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.GmName)
                .HasMaxLength(64);

            // Table & Column Mappings
            this.ToTable("GradeMaintenance");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.GmId).HasColumnName("GmId");
            this.Property(t => t.Type).HasColumnName("Type");
            this.Property(t => t.GmName).HasColumnName("GmName");
            this.Property(t => t.Num).HasColumnName("Num");
            this.Property(t => t.Money).HasColumnName("Money");
        }
    }
}
